#include<stdio.h>
#include<stdlib.h>
int comper(const void* a, const void* b)
{
	return ((int*)a)[0] - ((int*)b)[0];
}
int main()
{
	int arr[3][3] = { 3,1,5,9,7,6,4,8,0 };
	size_t num = sizeof(arr) /sizeof(arr[0][0]) ;
	size_t sz = sizeof(arr[0][0]);
	qsort(arr, num, sz, comper);
		for (int i = 0; i < 3; i++)
		{
			for (int j = 0; j < 3; j++)
			{
				printf("%d ",arr[i][j]);
			}
		}
	return 0;
}